package com.hechi.demo.service;

import com.hechi.demo.dto.ResultResponse;
import com.hechi.demo.entity.Overallresult;
import com.hechi.demo.mapper.OverallresultMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OverallResultServiceImpl {

    @Autowired
    OverallresultMapper overallresultMapper;

    public ResultResponse getOverallResultList(Integer orderId){

       List<Overallresult> overallresultList=overallresultMapper.selectByOrderId(orderId);

        return new ResultResponse(ResultResponse.SUCCESS_CODE,ResultResponse.SUCCESS_DESC,overallresultList);
    }
}
